<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title><?php echo ($name); ?> <?php echo ($site_name); ?> <?php echo ($site_seo_title); ?></title>
<meta name="keywords" content="<?php echo ($site_seo_keywords); ?>" />
<meta name="description" content="<?php echo ($site_seo_description); ?>" />
<link rel="icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/yxtcmf/public/simplebootx/public/images/favicon.ico" type="image/x-icon" media="screen" />
<link href="/yxtcmf/public/simplebootx/public/css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/common.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/main.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/es-icon.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/iconfont.css" />
<link href="/yxtcmf/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" media="screen" href="/yxtcmf/public/simplebootx/public/css/theme.css" />
<link rel="stylesheet" media="screen" href="/yxtcmf/public/pintuer/pintuer.css" />
<link href="/yxtcmf/public/js/artDialog/skins/default.css" rel="stylesheet" />
<!--[if lt IE 9]>    
	<script src="/yxtcmf/public/simplebootx/public/js/html5shiv.js"></script>   
	<script src="/yxtcmf/public/simplebootx/public/js/respond.min.js"></script>  
<![endif]-->
</head>
<body>	
	<header class="navbar">		
		<div class="container">			
			<div class="clearfix navbar-top">				
				<a href="/yxtcmf/"><img src="/yxtcmf/public/simplebootx/public/images/logo.png" class="pull-left logo-left"></a>				
				<button class="navbar-toggle pull-left" type="button" data-toggle="collapse" data-target=".navbar-collapse">		
					<span class="sr-only">Toggle navigation</span>			
					<span class="icon-bar"><i class="iconfont icon-gengduo"></i></span>		
					<span class="icon-bar"></span>				
					<span class="icon-bar"></span>				
				</button>				
				<form class="navbar-form hidden-xs" role="search" action="<?php echo u('Course/Course/search');?>" method="post">					
					<div class="form-group">					
						<input type="search" placeholder="搜索课程" class="form-control js-search" name="keywords">				
					</div>					
					<button type="submit" class="button iconfont icon-search"></button>				
				</form>				
				<!--<a class="pull-right hidden-xs">					
					<i class="iconfont icon-mianfeidianhua icon"></i>				
					<span class="telephone">全国服务热线：<?php echo ($kefu_tel); ?></span>			
				</a>-->			
				<!--<div class="navbar-user pull-right visible-xs"  style="top:16px;" >					
				<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">														
						<li class="info-img">
							<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 		
								<span><?php echo ($user_nicename); ?></span> <i class="iconfont icon-xia"></i> 
							</a>								
									<ul class="dropdown-menu menu-ul" role="menu">									
										<li><a href="<?php echo U('User/Center/setting');?>">
											<i class="iconfont icon-shezhi"></i>个人设置</a></li>										
										<li><a href="<?php echo u('user/center/count');?>"><i class="iconfont icon-001"></i> 账户中心</a></li>										
											<li><a href="<?php echo u('user/center/application');?>"><i class="iconfont icon-001"></i> 成为教师</a></li>								
										<li><a href="<?php echo U('user/index/logout');?>"><i class="iconfont icon-tuichu"></i>退出登录</a></li>									
									</ul>								
						</li>					
					</ul>					
				<?php else: ?>						
					<ul class="nav navbar-nav navbar-right">							
						<li><a href="<?php echo leuu('User/Login/index');?>"> 登录</a></li>							
						<!--<li>｜</li>							
						<li><a href="<?php echo leuu('User/Register/index');?>">注册</a></li>			
					</ul><?php endif; ?>-->				
				</div>			
			</div>		
		</div>		
		<nav class="nav-collapse">			
			<div class="container">				
				<div class="navbar-header">					
					<ul class="nav navbar-left navbar-collapse collapse">						
						<li class=""><a href="/yxtcmf/" class="">首页 </a></li>						
						<li class=""><a href="<?php echo leuu('Course/Course/coursecenter');?>" class="">精品课程</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Teacher/Teacher/index');?>" class="">金牌讲师</a></li>						
						<li class=""><a href="<?php echo leuu('Exam/Shiti/index');?>" class="">在线题库</a></li>-->						
						<li class=""><a href="<?php echo leuu('Portal/Index/article');?>" class="">党建新闻</a></li>						
						<!--<li class=""><a href="<?php echo leuu('Forum/Plate/index');?>" class="">交流论坛</a></li>-->						
						<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class=""><a href="<?php echo (sp_get_href($vo['href'])); ?>" class=""><?php echo ($vo['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>					
					</ul>				
				</div>				
				<div class="navbar-user hidden-xs">				
					<ul class="nav navbar-nav navbar-right">						
					<?php if(session('?user')): ?><ul class="nav navbar-nav navbar-right">							
							<?php if($user_type == 3): ?><li><a href="<?php echo u('Teacher/Center/index');?>" class="nav-study">我的教室</a></li>							
							<?php else: ?>								
								<li><a href="<?php echo u('User/Center/index');?>" class="nav-study">我的教室</a></li><?php endif; ?>								
								<li class="info-img">
									<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> 				
										<?php if(empty($avatar)): ?><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="img-circle" />		
										<?php else: ?> 										
											<img src="<?php echo sp_get_user_avatar_url($avatar);?>?t=<?php echo time();?>" class="img-circle" /><?php endif; ?> 									
										<span><?php echo ($user_nicename); ?></span> <i class="icon-caret-down"></i> 
									</a>									
									<ul class="dropdown-menu menu-ul" role="menu">								
										<li><a href="<?php echo u('User/Center/setting');?>"><i class="icon-cogs"></i>个人设置</a></li>		
										<li><a href="<?php echo u('user/center/count');?>"><i class="icon-desktop"></i> 账户中心</a></li>	
										<li><a href="<?php echo u('user/center/application');?>"><i class="icon-graduation-cap"></i> 成为教师</a></li>	
										<li><a href="<?php echo U('user/index/logout');?>"><i class="icon-power-off"></i>退出登录</a></li>	
									</ul>								
								</li>						
						</ul>					
					<?php else: ?>				
						<ul class="nav navbar-nav navbar-right">							
							<li><a href="<?php echo leuu('User/Login/index');?>"> <span class="glyphicon glyphicon-log-in"></span>&nbsp&nbsp登录</a></li>	
							<!--<li><a href="<?php echo leuu('User/Register/index');?>"><span class="glyphicon glyphicon-user"></span>&nbsp&nbsp注册</a></li>-->	
						</ul><?php endif; ?>					
					</ul>				
				</div>			
			</div>		
		</nav>    
	</header>     
 <section class="course-detail-header before">
   <div class="container">
     <ol class="breadcrumb breadcrumb-o">
        <li><a href="/">首页</a></li>
        <li><a href="<?php echo u('course/Course/coursecenter',array('typeid'=>$course_type['term_id']));?>"><?php echo ($course_type["name"]); ?></a></li>
        <li class="active"><?php echo ($cs_data["cs_name"]); ?></li>
     </ol>
     <div class="es-section clearfix">
       <div class="course-img">
	        <?php if($cs_data['course_type']=='live'): ?><span class="tags">
				   <span class="tag-live"></span>
				</span>
			  <?php else: ?> 
				 <?php if($cs_data['isover']==0): ?><span class="tags"><span class="tag-serialing"></span></span>
				 <?php else: ?>
				  <span class="tags">
					 <span class="tag-finished"></span>
				  </span><?php endif; endif; ?>
			<?php if(empty($cs_data['cs_picture'])): ?><img class="img-responsive " src="/yxtcmf/public/images/course.png">
			<?php else: ?> 
				<img class="img-responsive" src="<?php echo ($cs_data["cs_picture"]); ?>" alt="<?php echo ($cs_data["cs_name"]); ?>"><?php endif; ?> 
             
         <div class="tags"></div>
       </div>
       <div class="course-info">
         <h2 class="title"><?php echo ($cs_data["cs_name"]); ?>
           <span class="es-qrcode top">
         </h2>
         <div class="subtitle"></div>
         <div class="metas">
            <div class="score"> 
              <i class="icon-star"></i>
              <i class="icon-star"></i>
              <i class="icon-star"></i>
              <i class="icon-star"></i>
              <i class="icon-star"></i>
              <span>(<?php echo ($buynum); ?>人)</span>
           </div>
		   
		   
           <?php if($cs_data["cs_price"] == 0): ?><p class="discount-price" style="margin-top:10px;"><label>价格</label>
               <span class="course-price-widget">
                  <span class="price">
                     <span class="text-success">免费</span>  
                  </span>
               </span>        
             </p>
			    <?php if($cs_data["course_type"] == 'normal'): ?><div class="discount-price" style="margin-top:10px;"> 
						<label>课程有效期 <?php echo ($cs_data["youxiaoqi"]); ?>天</label>
					</div>
				<?php else: endif; ?> 	
           <?php else: ?>
             <p class="discount-price"><label>价格</label>
               <span class="course-price-widget"><span class="price"><?php echo ($cs_data["cs_price"]); ?>.00元 </span></span>        
             </p>
			    <?php if($cs_data["course_type"] == 'normal'): ?><div class="discount-price" style="margin-top:10px;"> 
						<label>课程有效期 <?php echo ($cs_data["youxiaoqi"]); ?>天</label>
					</div>
				<?php else: endif; endif; ?> 
    		   
         </div>
       </div>
       <div class="course-operation clearfix">
         <ul class="course-data clearfix active">
          <?php if(!empty($favorite)): ?><li id="unfavorite-btn" data-url=""><a onclick="favorite(this,'<?php echo ($favorite['id']); ?>','<?php echo ($favorite['object_id']); ?>')" href="#" class="color-primary">
              <p><i class="icon-heart"></i></p>
              <p>已收藏</p></a>
          </li>
           <?php else: ?>
             <li id="favorite-btn" data-url="" ><a onclick="favorite(this,'<?php echo ($favorite['id']); ?>','<?php echo ($cs_data["id"]); ?>')"  href="#">
               <p><i class="icon-heart"></i></p>
               <p>收藏</p></a>
            </li><?php endif; ?> 
          <div class="student-num hidden-xs" style="border-bottom:0px;">
            <i class="icon-users"></i><?php echo ($buynum); ?>人
          </div>          
         </li>
        </ul></br>
        <div class="bdsharebuttonbox"><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a></div></br>
        <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":["mshare","qzone","tsina","bdysc","weixin","renren","tqq","bdxc","kaixin001","tqf","tieba","douban","bdhome","sqq","ibaidu","huaban","hx","isohu","ty"],"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
         
      <div class="buy">
      <?php if(!session('?user')): ?><a class="btn btn-primary btn-lg" href="<?php echo u('User/Login/index');?>">购买课程</a>
      <?php else: ?>
        <?php if($isbuy == 0): if($isfree == 0): ?><a class="btn btn-primary btn-lg" href="<?php echo u('course/Course/buycourse',array('id'=>$cs_data['id']));?>"  data-toggle="modal" data-target="#myModal" >加入课程</a>
           <?php else: ?>
             <a class="btn btn-primary btn-lg" href="<?php echo u('course/Course/buycourse',array('id'=>$cs_data['id']));?>"  data-toggle="modal" data-target="#myModal">购买课程</a><?php endif; ?>
        <?php else: ?> 
            <a class="btn btn-primary btn-lg">已经购买</a><?php endif; endif; ?>	
      </div>
    </div>
   </div>
  </div>
 </section>
 <div id="content-container" class="container">    
    <div class="course-detail row">
       <div class="col-lg-9 col-md-8  course-detail-main">
          <section class="es-section">
            <div class="nav-btn-tab">
              <ul class="nav nav-tabs" id="myTab">
                 <li role="presentation"   class="active"><a href="#list" data-toggle="tab">课时列表</a></li>
                 <li role="presentation"><a href="#gaikuang" data-toggle="tab">课程概览</a></li>
                 <li role="presentation" ><a href="#pingjia" data-toggle="tab">课程评价</a></li>

                 <?php if($isbuy == 1): ?><li role="presentation" ><a  href="#ziliao" data-toggle="tab">资料下载</a></li>
				   <li role="presentation" ><a  href="#exam" data-toggle="tab">在线考试</a></li>
                 <?php else: endif; ?>   
              </ul>
            </div>    
            <div id="myTabContent" class="tab-content" >
               <div class="course-detail-content tab-pane fade in active"  id="list">
			   <?php if(session('?user')): ?><div class="course-detail-content">
                     <div class="es-piece">
                        <div class="piece-body">
                           <ul class="period-list" id="course-item-list">
									<?php if(($isbuy == 1) OR ($u_id == $cs_data['cs_teacher'])): if(is_array($sc_list)): $i = 0; $__LIST__ = $sc_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li class="period lesson-item">
											  <a href="<?php echo u('course/Course/study',array('id'=>$sub['id']));?>"   title="<?php echo ($sub['sc_name']); ?>">
												<?php if(isstudy($sub['id']) == 1): ?><i class="icon-circle color-primary status-icon"></i>
												<?php else: ?>
												  <i class="icon-circle-o status-icon"></i><?php endif; ?>
												<!--<?php if($sub['is_free'] == 1): ?><span class="label label-success mrm">免费</span>
												<?php else: endif; ?>-->
												<span class="title"><?php echo ($sub['sc_name']); ?></span>
												<?php switch($sub['livestate']): case "0": ?><span class="date">直播时间：<?php echo ($sub['live_starttime']); ?></span><?php break;?>
													<?php case "1": ?><span class="date"><font color="#82D867">正在直播中...</font></span><?php break;?>
													<?php case "2": ?><span class="date">直播已经结束</span><?php break;?>
													<?php default: ?><span class="date"></span><?php endswitch;?>											
											   </a>
											 </li><?php endforeach; endif; else: echo "" ;endif; ?> 
									<?php else: ?>
										<?php if(is_array($sc_list)): $i = 0; $__LIST__ = $sc_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li class="period lesson-item">
											<?php if($sub['is_free'] == 1): ?><a href="<?php echo u('course/Course/study',array('id'=>$sub['id']));?>"  title="<?php echo ($sub['sc_name']); ?>">
											   <?php if(isstudy($sub['id']) == 1): ?><i class="es-icon es-icon-done1 color-primary status-icon"></i>
												<?php else: ?>
												  <i class="es-icon es-icon-undone status-icon"></i><?php endif; ?>
											   <span class="label label-success mrm">免费</span>
											<?php else: ?>
											  <a href="<?php echo u('course/Course/buycourse',array('id'=>$cs_data['id']));?>" data-toggle="modal" data-target="#myModal" data-backdrop="static" title="<?php echo ($sub['sc_name']); ?>">
												<?php if(isstudy($sub['id']) == 1): ?><i class="es-icon es-icon-done1 color-primary status-icon"></i>
												<?php else: ?>
												  <i class="es-icon es-icon-undone status-icon"></i><?php endif; endif; ?> 
												<span class="title"><?php echo ($sub['sc_name']); ?></span>
												<?php switch($sub['livestate']): case "0": ?><span class="date">直播时间：<?php echo ($sub['live_starttime']); ?></span><?php break;?>
													<?php case "1": ?><span class="date"><font color="#82D867">正在直播中...</font></span><?php break;?>
													<?php case "2": ?><span class="date">直播已经结束</span><?php break;?>
													<?php default: ?><span class="date"></span><?php endswitch;?>
											  </a>
										   </li><?php endforeach; endif; else: echo "" ;endif; endif; ?> 
                             </ul>                           
                          </div>
                     </div>
                  </div>
				  <?php else: ?>请登陆后查看<?php endif; ?>
              </div>
              <div class="course-detail-content tab-pane fade"  id="gaikuang">
		        <div class="es-piece">
                  <div class="piece-header">课程介绍</div>
                    <div class="piece-body p-lg clearfix">
                     <?php echo ($cs_data['cs_brief']); ?>
                    </div>
                </div>
                <div class="es-piece" >
                 <div class="piece-header"> 课程目标</div>
                   <div class="piece-body">
                      <ul class="piece-body-list">
                          <li>
                              <i class="es-icon es-icon-chevronright"></i> <?php echo ($cs_data['mubiao']); ?>
                          </li>
                      </ul>
                  </div>
               </div>
               <div class="es-piece">
                 <div class="piece-header">适合人群</div>
                 <div class="piece-body">
                   <ul class="piece-body-list">
                      <li><i class="es-icon es-icon-chevronright"></i><?php echo ($cs_data['shihe']); ?></li>
                   </ul>
                  </div>
               </div>       
             </div>
             <div class="course-detail-content tab-pane fadee"  id="pingjia">
                <?php if($ispinglun == 1): ?><div class="clearfix" id="reping" style="display:block;">
                     <button class="btn btn-primary btn-sm pull-right js-show-review-form"  onclick="show()">重新评价</button>
                   </div>
                   <form id="review-form" class="js-ajax-form" method="post" action="<?php echo u('course/Course/pinglunadd');?>" style="display:none">
                     <div class="form-group controls">
                       <textarea class="form-control" rows="6"  name="pinglun"></textarea>
                     </div>
                     <div class="form-group clearfix">
                       <button type="submit" class="btn btn-primary pull-right  js-ajax-submit">保存</button>
                     </div>
                     <input type="hidden" name="c_id" value="<?php echo ($c_id); ?>">
                   </form>
                    <div class="js-reviews">
                     <div class="media media-evaluate">
                      <div style="float:left;margin-right:10px;">
                        <a class=" js-user-card" href="">
                          <?php if(empty($avatar)): ?><img src="./yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="avatar-sm"/>
			              <?php else: ?>
				            <img src="<?php echo sp_get_user_avatar_url($avatar);?>?t=<?php echo time();?>" class="avatar-sm"/><?php endif; ?>     
                        </a>
                      </div>
                      <div class="media-body">
                         <div class="title">    <a class="link-dark " href=""><?php echo ($user_nicename); ?></a><?php echo ($mypinglun['addtime']); ?></div>
                         
                         <div class="content">
                           <div class="short-content"><?php echo ($mypinglun['pinglun']); ?></div>
                         </div>
                         
                      </div>
                     </div> 
				   </div><?php endif; ?>
                  <?php if(($ispinglun == 0) and($isbuy == 1)): ?><form class="form-horizontal js-ajax-form" id="review-form" method="post" action="<?php echo u('course/Course/pinglunadd');?>" style="display:block;">
                      <div class="form-group controls">
                         <textarea class="form-control" rows="6" placeholder="请留下您宝贵的意见，谢谢！" name="pinglun"></textarea>
                      </div>
                      <div class="form-group clearfix">
                         <button type="submit" class="btn btn-primary pull-right js-ajax-submit">保存</button>
                      </div>
                      <input type="hidden" name="c_id" value="<?php echo ($c_id); ?>">
                    </form><?php endif; ?>
                 
                 <?php if(is_array($pinglunlist)): $i = 0; $__LIST__ = $pinglunlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(!empty($vo['pinglun'])): ?><div class="js-reviews">
                     <div class="media media-evaluate">
                      <div style="float:left;margin-right:10px;">
                        <a class=" js-user-card" href="">
                          <?php if(empty($avatar)): ?><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="avatar-sm"/>
			              <?php else: ?>
				            <img src="<?php echo sp_get_user_avatar_url($vo['avatar']);?>?t=<?php echo time();?>" class="avatar-sm"/><?php endif; ?>     
                        </a>
                      </div>
                      <div class="media-body">
                         <div class="title">    <a class="link-dark " href=""><?php echo ($vo['user_nicename']); ?></a><?php echo ($vo['addtime']); ?></div>
                         
                         <div class="content">
                           <div class="short-content"><?php echo ($vo['pinglun']); ?></div>
                         </div>
                         
                      </div>
                     </div> 
				   </div><?php endif; endforeach; endif; else: echo "" ;endif; ?>
               </div> 
               <div class="course-detail-content tab-pane fadee"  id="ziliao">
                 <ul class="period-list" id="course-item-list">
                    <?php if(is_array($material)): $i = 0; $__LIST__ = $material;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="period lesson-item">
                          <a href="<?php echo u('course/Course/downmaterial',array('id'=>$vo['id']));?>" title="<?php echo ($vo['name']); ?>">
                            <i class="es-icon es-icon-undone status-icon"></i>
		                    <span class="title"><?php echo ($vo['name']); ?></span>
                            <span class="course-type"><i class="es-icon es-icon-lesson" data-toggle="tooltip" data-placement="top" title="下载资料"></i></span>
                          </a>
                      </li><?php endforeach; endif; else: echo "" ;endif; ?>  
                 </ul>   
               </div>  
			   <div class="course-detail-content tab-pane fadee"  id="exam">
                 <ul class="period-list" id="course-item-list">
                    <?php if(is_array($exam)): $i = 0; $__LIST__ = $exam;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="period lesson-item">
						  <a  href="<?php echo u('Exam/Shiti/examstart',array('id'=>$vo['id']));?>"  data-toggle="modal" data-target="#exammodel">
                            <?php if($vo[ustate]==1): ?><i class="es-icon es-icon-done1 color-primary status-icon"></i>
		                     <?php else: ?>
							    <i class="es-icon es-icon-undone status-icon"></i><?php endif; ?>    
							<span class="title"><?php echo ($vo['title']); ?></span>
                            <span class="course-type"><i class="es-icon es-icon-lesson" data-toggle="tooltip" data-placement="top" title="在线考试"></i></span>
                          </a>
                      </li><?php endforeach; endif; else: echo "" ;endif; ?>  
                 </ul>   
               </div>  
             </div>
         </section>
        </div>
        <div class="col-lg-3 col-md-4  course-sidebar">
          <div class="panel panel-default">
             <div class="panel-heading">
                <h3 class="panel-title"> <i class="es-icon es-icon-assignmentind"></i>授课教师</h3>
             </div>
             <div class="panel-body">
                <div class="media media-default">
                  <div class="media-left">
                     <?php if(empty($teacher['avatar'])): ?><a href="<?php echo u('Teacher/Teacher/about',array('id'=>$teacher['id']));?>"><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="avatar-sm"/></a>
			            <?php else: ?>
				          <a href="<?php echo u('Teacher/Teacher/about',array('id'=>$teacher['id']));?>"><img src="<?php echo sp_get_user_avatar_url($teacher['avatar']);?>" class="avatar-sm"/></a><?php endif; ?>       
                  </div>
                 <div class="media-body">
                      <div class="title"><a class="link-dark link-light" href="<?php echo u('Teacher/Teacher/about',array('id'=>$teacher['id']));?>"><?php echo ($teacher['user_nicename']); ?></a></div>
                      <div class="content"><?php echo ($teacher['signature']); ?></div>
                 </div>
                </div>
            </div>
        </div>
       <div class="panel panel-default">
           <div class="panel-heading">
              <h3 class="panel-title"><i class="es-icon es-icon-personadd"></i>最新学员</h3>
           </div>
          <div class="panel-body">
             <ul class="user-avatar-list clearfix">
               <?php if(is_array($newstud)): $i = 0; $__LIST__ = $newstud;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                    <?php if(empty($vo['avatar'])): ?><img src="/yxtcmf/public/simplebootx/public/images/093958e59110293063.jpg" class="avatar-sm"  title="<?php echo ($vo['user_nicename']); ?>">
			          <?php else: ?>
				        <img src="<?php echo sp_get_user_avatar_url($vo['avatar']);?>" class="avatar-sm"  title="<?php echo ($vo['user_nicename']); ?>"><?php endif; endforeach; endif; else: echo "" ;endif; ?> 
             </ul>
          </div>
        </div>
        <div class="panel panel-default student-dynamic">
          <div class="panel-heading"><h3 class="panel-title"><i class="es-icon es-icon-recentactors"></i>学员动态</h3></div>
          <div class="panel-body">
            <?php if(is_array($dongtai)): $i = 0; $__LIST__ = $dongtai;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="media media-number-o color-gray text-overflow">
                <a class="link-dark " title="<?php echo ($vo['username']); ?>"><?php echo ($vo['username']); ?>&nbsp&nbsp&nbsp</a>加入课程&nbsp&nbsp&nbsp<a  class="link-dark" href="<?php echo u('course/Course/courseinfo',array('id'=>$vo['courseid']));?>" title="<?php echo ($vo['coursename']); ?>"><?php echo ((isset($vo['coursename']) && ($vo['coursename'] !== ""))?($vo['coursename']):"<font color='blue'>课程已删除</font>"); ?></a>
             </div><?php endforeach; endif; else: echo "" ;endif; ?> 
          </div>
        </div>
      </div>
    </div>
   </div>
   
 <script>
 function show()
 {
   document.getElementById('review-form').style.display='block';
   document.getElementById('reping').style.display='none';
 }
 </script>
 <script>
 function favorite(obj,id,cid){
 
	 $.ajax({ url:'<?php echo u('course/Course/favorite');?>', 
		 type:"post", data:{'id':id,'cid':cid}, 
		 dataType:'json', 
		 success:function(data){
		   location.reload(); },
			  }
	  );
}
 </script>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"  aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-body">
          
         </div>
      </div>
   </div>
</div>
<div class="modal fade" id="exammodel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
		<div class="modal-content">
			 <div class="modal-body">
			  
			 </div>
      </div>
    </div>
</div>
<script type="text/javascript">
var GV = {
    DIMAUB: "/yxtcmf/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
</script>
<script>
	  
</script>
<script src="/yxtcmf/public/js/jquery.js"></script>
<script src="/yxtcmf/public/js/wind.js"></script>
<script src="/yxtcmf/public/js/bootstrap.min.js"></script>
<script src="/yxtcmf/public/js/frontend.js"></script>
<script src="/yxtcmf/public/js/artDialog/artDialog.js"></script>
  <!--<div class="es-footer-link">
   <div class="container">
     <div class="row">
       <div class="col-md-12 footer-main clearfix">
       <?php if(is_array($dnav)): $i = 0; $__LIST__ = $dnav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="link-item ">
           <h3><?php echo ($vo['label']); ?></h3>
           <ul>
            <?php if(is_array($vo['voo'])): $i = 0; $__LIST__ = $vo['voo'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li><a href="<?php echo (sp_get_href($sub['href'])); ?>" target="_blank"><?php echo ($sub['label']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
           </ul>
         </div><?php endforeach; endif; else: echo "" ;endif; ?>  
     </div>
    </div>
	<div class="fr_link">
	  <div class="yq_lk">
	     <h3>友情链接</h3>
		 <?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo['link_url']); ?>"  target="<?php echo ($vo['link_target']); ?>" title="<?php echo ($vo['link_name']); ?>"><?php echo ($vo['link_name']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
	  </div>
	</div>       
  </div>
 </div>-->
<div class="layout fixed-bottom bg-main bg-inverse hidden-s  hidden-m hidden-b">
	<div class="container text-center padding-top padding-bottom">
        <div class="x3"><a class="icon-home" href="/yxtcmf/"> 首页</a></div>
        <div class="x3"><a class="icon-book" href="<?php echo U('Course/course/coursecenter');?>"> 课程</a></div>
        <div class="x3"><a class="icon-comments" href="<?php echo U('portal/index/article');?>"> 新闻</a></div>
        <div class="x3">
			<?php if(session('?user')): ?><a class="icon-user" href="<?php echo U('User/center/index');?>"> 我的</a>
			<?php else: ?>
			<a class="icon-user" href="<?php echo U('User/login/index');?>"> 我的</a><?php endif; ?>
		</div>
    </div>
</div>

<div class="container-layout">
    <div class="border-top padding-top">        
        <div class="text-center height-big margin">
           考试系统后端 @ 版权所有【2017-2020】
		</div>
    </div>
</div>
<!--<footer class="es-footer">
  <div class="copyright">
    <div class="container">设计开发： 
		<a href="/yxtcmf/" target="_blank"><?php echo ($site_name); ?></a>©2017-2020 <a class="mlm" href="/yxtcmf/" target="_blank"></a>      
    </div>
  </div>
</footer>-->    
</body>
</html>
<script>
$("#myModal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});
 </script>
 <script>
$("#exammodel").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});
</script>